package com.earthchen.domain;


import com.baomidou.mybatisplus.annotations.TableName;

import java.util.Date;

/**
 * 操作日志
 *
 * @author earthchen
 * @date 2018/8/24
 **/
@TableName("sys_operation_log")
public class OperationLog extends SuperEntity<OperationLog> {

    private static final long serialVersionUID = 1L;

    /**
     * 日志类型
     */
    private String logtype;
    /**
     * 日志名称
     */
    private String logname;
    /**
     * 用户id
     */
    private Integer userid;
    /**
     * 方法名称
     */
    private String method;
    /**
     * 创建时间
     */
    private Date createtime;
    /**
     * 是否成功
     */
    private String status;
    /**
     * 备注
     */
    private String message;

    /**
     * 操作参数
     */
    private String operParams;

    /**
     * 操作url
     */
    private String operUrl;


    public String getOperUrl() {
        return operUrl;
    }

    public void setOperUrl(String operUrl) {
        this.operUrl = operUrl;
    }

    public String getOperParams() {
        return operParams;
    }

    public void setOperParams(String operParams) {
        this.operParams = operParams;
    }

    public String getLogtype() {
        return logtype;
    }

    public void setLogtype(String logtype) {
        this.logtype = logtype;
    }

    public String getLogname() {
        return logname;
    }

    public void setLogname(String logname) {
        this.logname = logname;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return "OperationLog{" +
                "logtype='" + logtype + '\'' +
                ", logname='" + logname + '\'' +
                ", userid=" + userid +
                ", method='" + method + '\'' +
                ", createtime=" + createtime +
                ", status='" + status + '\'' +
                ", message='" + message + '\'' +
                ", operParams='" + operParams + '\'' +
                ", operUrl='" + operUrl + '\'' +
                '}';
    }
}
